﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using POSSystem.BLL;
namespace WebUI.Controls
{
    public partial class EditBranchCtrl : BaseEditControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load(sender, e);

        }

        public string Name
        {
            get { return txtName.Text; }
            set { txtName.Text = value; }
        }

        public string Phone
        {
            get { return txtPhone.Text; }
            set { txtPhone.Text = value; }
        }

        public string Fax
        {
            get { return txtFax.Text; }
            set { txtFax.Text = value; }
        }
        

        public string Address
        {
            get { return txtAddress.Text; }
            set { txtAddress.Text = value; }
        }

        public string ABN
        {
            get { return txtABN.Text; }
            set { txtABN.Text = value; }
        }

        public bool Active
        {
            get { return chkActive.Checked; }
            set { chkActive.Checked = value; }
        }

        public bool CopyFromHeadQuarter
        {
            get { return chkCopyFromHeadQuarter.Checked; }
            set { chkCopyFromHeadQuarter.Checked = value; }
        }

        public void SetVisibleCopy(bool visible)
        {
            divHr.Visible = visible;
            chkCopyFromHeadQuarter.Visible = visible;
        }
    }
}